package test;

abstract class Animal
{
	abstract void eat();
}


class Cat extends  Animal
{
	void eat()
	{
		System.out.println("cat eat");
	}
	
	void CatchMouse()
	{
		System.out.println("cat catch");
	}
}


public class DuoTaiDemo {
	
	public static void main(String[] args)
	{
		Cat a = new Cat();
		a.eat();
		a.CatchMouse();
		
		Animal b = new Cat();
		b.eat();
		
		Cat c = (Cat)b;
		c.CatchMouse();
		
	}
}
